package cn.cmcc.online.smsapi.ui.util;

import java.util.Collection;
import java.util.List;

/**
 * Created by ZhangYifan on 2017/6/15.
 */

public interface ItemRepertory<T> {

    T createItem();

    T getItemFromRepertort();

    T getOrCreateItem();

    List<T> getAllItemsFromRepertory();

    void recycleItem(T item);

    void recycleCollectItems(Collection<T> items);
}
